﻿@model IList<Admin.Models.ProductDetailsModel>


@{
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<div class="formtable" style="box-shadow: none;border:none">
    <table class="table table-hover" style="box-shadow: 5px 5px 5px #888888;">
        <thead>
            <tr style="color:red;">
                <th>Mã  Sản Phẩm</th>
                <th></th>
                <th>Tên sản phẩm</th>
                <th>Giá cũ</th>
                <th>Giá mới</th>
                <th>Saleof</th>
                <th>Chủ đề</th>
                <th>Ngày tạo</th>
                <th>Người tạo</th>
                <th></th>
                <th></th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            @foreach (var id in Model)
            {
                <tr>
                    <th>@id.MASP</th>
                    <th><img src="~/Content/images/sanpham/@id.IMG" style="height: 110px; box-shadow: 3px 3px 3px #888888;" /></th>
                    <th>@id.TENSP</th>
                    <th>@id.GIACU<a>đ</a></th>
                    <th style="color:red;">@id.GIAMOI<a style="color:red;">đ</a></th>
                    <th style ="color:red;">@id.SALEOF%</th>
                    <th>@id.CHUDE</th>
                    <th>@id.NGAYTAO</th>
                    <th>@id.NGUOITAO</th>

                    <th><span class="glyphicon glyphicon-edit" style="margin:0 auto;"></span></th>
                    <th>@Html.ActionLink("Edit", "editProductDetails", new { id = @id.MASP })</th>
                    <th>@Html.ActionLink("Delete", "deleteProductDetails", new { id = @id.MASP })</th>

                </tr>
            }
        </tbody>
    </table>
    <ul class="pagination"></ul>
</div>

